package com.qianda.qdminiapp.domain.model.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户购买限制
 * </p>
 *
 * @author cw
 * @since 2019-12-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QqdUserBuyLimit extends Model<QqdUserBuyLimit> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 购买次数
     */
    private Integer buyTime;

    /**
     * 购买日期
     */
    private LocalDate buyDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
